import request from '@/utils/request'
/**
 * 1C最后一次监测数据查询
 * @param {string} pillarCode
 */
export function getC1Data(query) {
  return request({
    url: '/phm/detectC1data/findLastTestParameter',
    method: 'get',
    params: query
  })
}
/**
 * 1C检测表参数波形图
 * @param {string} pillarId
 */
export function getC1ChartOption(query) {
  return request({
    url: '/phm/detectC1data/findParametricWaveform',
    method: 'get',
    params: query
  })
}
/**
 * 1C锚段检查参数时间轴
 */
export function findTimeAxisByAnchor(query) {
  return request({
    url: '/phm/detectC1data/findTimeAxisByAnchor',
    method: 'get',
    params: query
  })
}
/**
 * 1C锚段检查参数波形图
 */
export function findParametricWaveformByAnchor(query) {
  return request({
    url: '/phm/detectC1data/findParametricWaveformByAnchor',
    method: 'get',
    params: query
  })
}
/**
 * 2C图片查询
 * @param {string} pillarCode
 */
export function getC2Images(query) {
  return request({
    url: '/phm/detectC2index/findImages',
    method: 'get',
    params: query
  })
}
/**
 * 2C图片查询
 * @param {string} detectJobId
 */
export function findImagesByJobId(query) {
  return request({
    url: '/phm/detectC2index/findImagesByJobId',
    method: 'get',
    params: query
  })
}
/**
 * 2C查询索引时间轴
 * @param {string} pillarId
 */
export function getC2TimeAxis(query) {
  return request({
    url: '/phm/detectC2index/findTimeAxis',
    method: 'get',
    params: query
  })
}
/**
 * 通过锚段查询2C索引时间轴
 */
export function findTimeAxisByAnchor2C(query) {
  return request({
    url: '/phm/detectC2index/findTimeAxisByAnchor',
    method: 'get',
    params: query
  })
}
/**
 * 通过锚段查询支柱信息及区间站场名称
 */
export function findPillarAndSiteByAnchor2C(query) {
  return request({
    url: '/phm/detectC2index/findPillarAndSiteByAnchor',
    method: 'get',
    params: query
  })
}
/**
 * 4C图片查询
 * @param {string} pillarCode
 */
export function getC4Images(query) {
  return request({
    url: '/phm/detectC4index/findImages',
    method: 'get',
    params: query
  })
}
/**
 * 4C作业查询
 * @param {string} pillarCode
 */
export function find4CJob(query) {
  return request({
    url: '/phm/detectC4Job/find4CJob',
    method: 'get',
    params: query
  })
}

/**
 * 4C查询索引时间轴
 * @param {string} pillarId
 */
export function getC4TimeAxis(query) {
  return request({
    url: '/phm/detectC4index/findTimeAxis',
    method: 'get',
    params: query
  })
}
/**
 * 通过锚段查询4C索引时间轴
 */
export function findTimeAxisByAnchor4C(query) {
  return request({
    url: '/phm/detectC4index/findTimeAxisByAnchor',
    method: 'get',
    params: query
  })
}
/**
 * 通过锚段查询支柱信息及区间站场名称
 */
export function findPillarAndSiteByAnchor4C(query) {
  return request({
    url: '/phm/detectC4index/findPillarAndSiteByAnchor',
    method: 'get',
    params: query
  })
}
/**
 * 按时间、线路查询CQI指标数
 */
export function findDetectCQI(query) {
  return request({
    url: '/repair/detectCQI/findDetectCQI',
    method: 'get',
    params: query
  })
}
/**
 * CQI对比分析
 */
export function findCqiCompareAnalysis(query) {
  return request({
    url: '/repair/detectCQI/findCqiCompareAnalysis',
    method: 'get',
    params: query
  })
}
/**
 * CQI变化趋势
 */
export function findCqiChangeTrend(query) {
  return request({
    url: '/repair/detectCQI/findCqiChangeTrend',
    method: 'get',
    params: query
  })
}
/**
 * CQI缺陷信息
 */
export function findCqiDetectInfo(query) {
  return request({
    url: '/repair/detectCQI/findCqiDetectInfo',
    method: 'get',
    params: query
  })
}
/**
 * 一杆一档历史缺陷
 */
export function findHistoryDefect(query) {
  return request({
    url: '/repair/jcwDefectInfo/findHistoryDefect',
    method: 'get',
    params: query
  })
}
/**
 * 缺陷数量统计
 */
export function getDefectOverview(query) {
  return request({
    url: '/repair/jcwDefectInfo/defectInfoOverview',
    method: 'get',
    params: query
  })
}
export function findDefectSpec(query) { // 特定缺陷
  return request({
    url: '/phm/analysisTotalDefectNum/findHistoryDefectSpecificDefects',
    method: 'get',
    params: query
  })
}
/**
 * 过滤条件
 */
export function findSearchCondition(query) {
  return request({
    url: '/repair/jcwDefectInfo/findSearchCondition',
    method: 'get',
    params: query
  })
}
export function findDefectNumsByCondition(query) {
  return request({
    url: '/repair/jcwDefectInfo/findDefectNumsByCondition',
    method: 'get',
    params: query
  })
}
/**
 * 一杆一档缺陷详情
 */
export function findDefectInfoById(query) {
  return request({
    url: '/repair/jcwDefectInfo/findDefectInfoById',
    method: 'get',
    params: query
  })
}
/**
 * 健康度及评价分析
 */
export function findAnalysisHealthForAllLine(query) {
  return request({
    url: '/phm/analysisHealth/findAnalysisHealthForAllLineSite',
    method: 'get',
    params: query
  })
}
/**
 * 查询当前月份每个健康状态下线路数量
 */
export function findHealthNumForCurrMonth(query) {
  return request({
    url: '/phm/analysisHealth/findHealthNumForCurrMonth',
    method: 'get',
    params: query
  })
}
/**
 * 根据线路编码或区间站场编码查询当前月份线路或区间站场的健康状态
 */
export function findHealthByCode(query) {
  return request({
    url: '/phm/analysisHealth/findHealthByCode',
    method: 'get',
    params: query
  })
}
/**
 * 通过线路编码查询健康度及评价分析
 */
export function findAnalysisHealthByLineCode(query) {
  return request({
    url: '/phm/analysisHealth/findAnalysisHealthByLineCode',
    method: 'get',
    params: query
  })
}
/**
 * 通过区间站场编码查询健康度及评价分析
 */
export function findAnalysisHealthBySiteCode(query) {
  return request({
    url: '/phm/analysisHealth/findAnalysisHealthBySiteCode',
    method: 'get',
    params: query
  })
}
/**
 * 通过锚段编码查询健康度及评价分析
 */
export function findAnalysisHealthByAnchorCode(query) {
  return request({
    url: '/phm/analysisHealth/findAnalysisHealthByAnchorCode',
    method: 'get',
    params: query
  })
}
/**
 * 健康状态分析线路数量
 */
export function findLineCountAnalysisHealth(query) {
  return request({
    url: '/phm/analysisHealth/findLineCountAnalysisHealth',
    method: 'get',
    params: query
  })
}
/**
 * 健康状态分析区间站场数量
 */
export function findSiteCountAnalysisHealth(query) {
  return request({
    url: '/phm/analysisHealth/findSiteCountAnalysisHealth',
    method: 'get',
    params: query
  })
}
/**
 * 健康状态分析锚段数量
 */
export function findAnchorCountAnalysisHealth(query) {
  return request({
    url: '/phm/analysisHealth/findAnchorCountAnalysisHealth',
    method: 'get',
    params: query
  })
}
/**
 * 线路健康度对比分析
 */
export function findContrastiveAnalysisHealth(query) {
  return request({
    url: '/phm/analysisHealth/findContrastiveAnalysisHealth',
    method: 'get',
    params: query
  })
}
/**
 * 线路健康状态变化分析
 */
export function findMutationAnalysisHealth(query) {
  return request({
    url: '/phm/analysisHealth/findMutationAnalysisHealth',
    method: 'get',
    params: query
  })
}
/**
 * 区间站场健康状态分布
 */
export function findSiteAnalysisHealth(query) {
  return request({
    url: '/phm/analysisHealth/findSiteAnalysisHealth',
    method: 'get',
    params: query
  })
}
/**
 * 锚段健康状态分布
 */
export function findAnchorAnalysisHealth(query) {
  return request({
    url: '/phm/analysisHealth/findAnchorAnalysisHealth',
    method: 'get',
    params: query
  })
}
/**
 * 通过健康状态数值查询清单
 */
export function findAnalysisHealthByNum(query) {
  return request({
    url: '/phm/analysisHealth/findAnalysisHealthByNum',
    method: 'get',
    params: query
  })
}
/**
 * 1C检测数据查询
 */
export function find1cDetectData(query) {
  return request({
    url: '/phm/detectC1data/find1cDetectData',
    method: 'get',
    params: query
  })
}
/**
 * 2C检测数据查询
 */
export function find2cDetectData(query) {
  return request({
    url: '/phm/detectC2index/find2cDetectData',
    method: 'get',
    params: query
  })
}
/**
 * 3C检测数据查询
 */
export function find3cDetectData(query) {
  return request({
    url: '/phm/detectC4index/find4cDetectData',
    method: 'get',
    params: query
  })
}
/**
 * 4C检测数据查询
 */
export function find4cDetectData(query) {
  return request({
    url: '/phm/detectC4index/find4cDetectData',
    method: 'get',
    params: query
  })
}
/**
 * 5C检测数据查询
 */
export function find5cDetectData(query) {
  return request({
    url: '/phm/detectC5/find5CJobList',
    method: 'get',
    params: query
  })
}
/**
 * 5C检测图片查询
 */
export function find5CDetectPicture(query) {
  return request({
    url: '/phm/detectC5/find5CDetectPicture',
    method: 'get',
    params: query
  })
}
/**
 * 5C菜单树
 */
export function find5CMenuTree(query) {
  return request({
    url: '/phm/detectC5/find5CMenuTree',
    method: 'get',
    params: query
  })
}
/**
 * 切换线路查询该线路下所有区间站场的健康状态
 */
export function findHealthStatusByCode(query) {
  return request({
    url: '/phm/analysisHealth/findHealthStatusByCode',
    method: 'get',
    params: query
  })
}
/**
 * 切换区间查询该区间下所有所有锚段的健康状态
 */
export function findAnchorHealthBySiteCode(query) {
  return request({
    url: '/phm/analysisHealth/findAnchorHealthBySiteCode',
    method: 'get',
    params: query
  })
}
/**
 * 切换线路查询该线路下所有区间站场的健康状态
 */
export function findSiteHealthByLineCode(query) {
  return request({
    url: '/phm/analysisHealth/findSiteHealthByLineCode',
    method: 'get',
    params: query
  })
}
/**
 * 1C检测详情波形图
 */
export function findDetailWaveform(query) {
  return request({
    url: '/phm/detectC1data/findDetailWaveform',
    method: 'get',
    params: query
  })
}
/**
 * 2C检测数据详情页面支柱号查询
 */
export function find2cDetailPillarNum(query) {
  return request({
    url: '/phm/detectC2index/find2cDetailPillarNum',
    method: 'get',
    params: query
  })
}
/**
 * 4C检测数据详情页面支柱号查询
 */
export function find4cDetailPillarNum(query) {
  return request({
    url: '/phm/detectC4index/find4cDetailPillarNum',
    method: 'get',
    params: query
  })
}
/**
 * 查询检测告警信息
 */
export function findDetectAlarm(query) {
  return request({
    url: '/phm/detectAlarm/findDetectAlarm',
    method: 'get',
    params: query
  })
}
/**
 * 根据线路查询检测告警信息
 */
export function findDetectAlarmByLineId(query) {
  return request({
    url: '/phm/detectAlarm/findDetectAlarmByLineId',
    method: 'get',
    params: query
  })
}
/**
 * 检测进度查询
 */
export function findDetectProgress(query) {
  return request({
    url: '/phm/detectAlarm/findDetectProgress',
    method: 'get',
    params: query
  })
}
/**
 * 线路CQI：查询当前线路的近一年的CQI指数
 */
export function findNear12MonthsCqiByLineCode(query) {
  return request({
    url: '/repair/detectCQI/findNear12MonthsCqiByLineCode',
    method: 'get',
    params: query
  })
}
